Skip to content

ARROW-6999: [Python] Fix unnamed index when specifying schema in Table.from_pandas#5750

Closed
jorisvandenbossche wants to merge 4 commits into
apache:masterfrom
jorisvandenbossche:ARROW-6999-pandas-schema-index-columns
Closed

ARROW-6999: [Python] Fix unnamed index when specifying schema in Table.from_pandas#5750
jorisvandenbossche wants to merge 4 commits into
apache:masterfrom
jorisvandenbossche:ARROW-6999-pandas-schema-index-columns

Conversation

@jorisvandenbossche

Copy link
Copy Markdown
Member

@github-actions

Copy link
Copy Markdown

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #5750 into master will decrease coverage by 22.04%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #5750       +/-   ##
===========================================
- Coverage   88.96%   66.92%   -22.05%     
===========================================
  Files         992      534      -458     
  Lines      135218    75606    -59612     
  Branches     1501        0     -1501     
===========================================
- Hits       120300    50596    -69704     
- Misses      14553    25010    +10457     
+ Partials      365        0      -365
Impacted Files Coverage Δ
python/pyarrow/tests/test_pandas.py 94.69% <100%> (+0.03%) ⬆️
python/pyarrow/pandas_compat.py 97.08% <100%> (+0.07%) ⬆️
cpp/src/arrow/util/memory.h 0% <0%> (-100%) ⬇️
cpp/src/arrow/filesystem/path_tree.h 0% <0%> (-100%) ⬇️
cpp/src/gandiva/date_utils.h 0% <0%> (-100%) ⬇️
cpp/src/arrow/util/memory.cc 0% <0%> (-100%) ⬇️
cpp/src/gandiva/decimal_type_util.h 0% <0%> (-100%) ⬇️
cpp/src/arrow/compute/logical_type.h 0% <0%> (-100%) ⬇️
cpp/src/parquet/hasher.h 0% <0%> (-100%) ⬇️
cpp/src/gandiva/basic_decimal_scalar.h 0% <0%> (-100%) ⬇️
... and 719 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 89b5a24...fa67785. Read the comment docs.

@fsaintjacques fsaintjacques left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small code structure proposition, non-blocking. I can't comment on the validity, I don't know what a RangeIndex is :)

Comment thread python/pyarrow/pandas_compat.py Outdated
Comment thread python/pyarrow/pandas_compat.py Outdated
@jorisvandenbossche

Copy link
Copy Markdown
Member Author

@fsaintjacques Thanks for the review! Simplified a bit based on your comment, and also ended up combining both functions in one.

@pitrou pitrou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just a very minor comment.

Comment thread python/pyarrow/pandas_compat.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotta love this error message :-)

Comment thread python/pyarrow/pandas_compat.py Outdated
@jorisvandenbossche jorisvandenbossche force-pushed the ARROW-6999-pandas-schema-index-columns branch from 29d9628 to 199de55 Compare November 5, 2019 10:27

@pitrou pitrou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@pitrou

pitrou commented Nov 5, 2019

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants